import { LayoutComponent } from '../layout/layout.component';
import { AuthGuard } from '../core/auth/auth.guard';

export const routes = [
    {
        path: '',
        component: LayoutComponent,
        canActivate: [AuthGuard],
        children: [
            { path: '', redirectTo: 'memberCenter', pathMatch: 'full' },
            { path: 'memberCenter', loadChildren: './member-center/member-center.module#MemberCenterModule' }
        ]
    },{
        path: 'pages',
        loadChildren: './pages/pages.module#PagesModule'
    },{
        path: '**',
        redirectTo: ''
    }
];


